const express = require('express');
const app = express();
//引入验证码模块
const svg = require('svg-captcha');
app.listen(3000);
app.get('/vig', (req, res) => {
    //创建基本的验证码
    let captcha = svg.create();

    res.type('svg');
    res.send(captcha.data);
    console.log(captcha.data);
    console.log(captcha.text);
})
